﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PutInCardDetailed.aspx.cs"
    Inherits="CardLogistics.Web.MainPage.PutInCard.PutInCard.PutInCardDetailed" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>半成品/成品卡入库单</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/CreateControl.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#PutInCardNo").click(function () { //请选择入库单号
                $.tipsWindow({
                    ___title: "请选择入库单号",
                    ___content: "iframe:../../SelectPage/SelPutInCard.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });
        })

        //搜索按钮执行函数
        function queryData() {
            var ReportViewer = document.getElementById("ReportViewer");
            ReportViewer.Stop();
            var putInId = getQueryString("PutInId");
            var DataURL = encodeURI("PutInCardDetailedRpt.aspx?putInId="+putInId);
            ReportViewer.DataURL = DataURL;

            //var supName = $("#SupName").val(); //供应商
            //var cardType = $("#CardType").val(); //卡类型

//            //给报表设计器赋值参数
//            ReportViewer.Report.ControlByName("PutInNo").AsMemoBox.Text = putInNo; //半成品/成品卡入库单号
//            ReportViewer.Report.ControlByName("SuppliersName").AsMemoBox.Text = supName; //供应商
//            ReportViewer.Report.ControlByName("CardtypeName").AsMemoBox.Text = cardType; //卡类型

            ReportViewer.Start();
        }

    </script>
</head>
<body onload="queryData();">
    <form runat="server" id="f2">
    <div class="rightinfo">
        <script type="text/javascript">
            var divkuangH = $(window).height();
            var viewH = divkuangH - 117 + 100 - 1;
            CreatePrintViewerEx("100%", viewH, '../../../grf/PutInCardDetailed.grf', "", false);
        </script>
    </div>
    </form>
</body>
</html>
